package cn.com.dbridge.common.websocket.netty;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * Copyright: Copyright (c) 2019
 *
 * @ClassName: NettyConfig.java
 * @Description:
 * @author: lingmeng.kong
 * @date: Jul 2, 2019 1:51:30 AM
 */
@Component
@Data
public class NettyConfig {
    @Value("${netty.port}")
    private Integer port;

    @Value("${netty.parentg.thread.num}")
    private Integer parentgThreadNum;

    @Value("${netty.parentg.thread.name}")
    private String parentgThreadName;

    @Value("${netty.parentg.ioratio}")
    private Integer parentgIoratio;

    @Value("${netty.childg.thread.num}")
    private Integer childgThreadNum;

    @Value("${netty.childg.thread.name}")
    private String childggThreadName;

    @Value("${netty.childg.ioratio}")
    private Integer childgIoratio;

    @Value("${netty.core.max-packet-size}")
    private Integer maxPacketSize;

    @Value("${netty.websocket.ws_path}")
    private String wsPath;

    @Value("${netty.core.heartbeat}")
    private Integer heartbeat;
}
